package fr.vvins.core.biz.user.dto;



import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import fr.vvins.core.common.dto.BeanDtoImpl;
import fr.vvins.core.common.dto.annotation.Dto;
import fr.vvins.core.user.entity.Role;

/**
 * Role entity
 */
@Dto(name="Role", entity=Role.class)
public class RoleDto extends BeanDtoImpl implements Serializable {

	private static final long serialVersionUID = 1242250053327176837L;
	private RoleDto parentRoles;
	private String name;
	private Set<RoleDto> childRoles = new HashSet<RoleDto>(0);

	public RoleDto() {
	}

	public RoleDto(int id, RoleDto parentRoles, String name, Set<RoleDto> childRoles) {
		super();
		this.id = id;
		this.parentRoles = parentRoles;
		this.name = name;
		this.childRoles = childRoles;
	}

	public RoleDto getParentRoles() {
		return parentRoles;
	}

	public void setParentRoles(RoleDto parentRoles) {
		this.parentRoles = parentRoles;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<RoleDto> getChildRoles() {
		return childRoles;
	}

	public void setChildRoles(Set<RoleDto> childRoles) {
		this.childRoles = childRoles;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	

}
